package com.example.homework1.demos.web;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.concurrent.ThreadLocalRandom;

@RestController
public class RandomContinner {
    @RequestMapping("random")
    public int random(){
        int randomInt= ThreadLocalRandom.current().nextInt(0,1000);
        return randomInt;
    }
}
